package com.itheima.d10_permission_modifiers.other;

import com.itheima.d10_permission_modifiers.Father;

public class OtherPackageClass {

    public static void main(String[] args) {

        //情况4：任意类，只能访问公共方法
        Father f = new Father();
        f.publicMethod();
        //f.protectedMethod();
        //f.defaultMethod();
        //f.privateMethod();

    }
}
